home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / Vk / VkMovieButton.z / VkMovieButton
Encoding:
Text File  |  1998-10-20  |  6.4 KB  |  265 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. VVVVkkkkMMMMoooovvvviiiieeeeBBBBuuuuttttttttoooonnnn((((3333xxxx))))                                            VVVVkkkkMMMMoooovvvviiiieeeeBBBBuuuuttttttttoooonnnn((((3333xxxx))))
  71.  
  72.  
  73.  
  74. NNNNAAAAMMMMEEEE
  75.      VkMovieButton - A multimedia button component that plays a movie
  76.  
  77. IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
  78.      VkComponent : VkCallbackObject
  79.  
  80. HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
  81.      #include <Vk/VkMovieButton.h>
  82.  
  83. MMMMAAAAKKKKEEEE RRRREEEEQQQQUUUUIIIIRRRREEEEMMMMEEEENNNNTTTTSSSS
  84.      -lmovieGL -laudio -lcl -ldmedia -lGL -lGLw -lGLU
  85.  
  86. PPPPUUUUBBBBLLLLIIIICCCC PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
  87.    CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr////DDDDeeeessssttttrrrruuuuccccttttoooorrrr
  88.            VkMovieButton(const char *name,
  89.                          Widget parent,
  90.                          char *movieFileName = NULL,
  91.                          char *label=NULL);
  92.  
  93.            virtual void ~VkMovieButton(void);
  94.  
  95.  
  96.    SSSSeeeetttt TTTTeeeexxxxtttt LLLLaaaabbbbeeeellll VVVVaaaalllluuuueeee
  97.            void setLabel(char* labelString);
  98.  
  99.  
  100.    SSSSppppeeeecccciiiiffffyyyyiiiinnnngggg aaaa mmmmoooovvvviiiieeee
  101.           void VkMovieButton::setMovieFileName(const char *file)
  102.  
  103.    TTTTuuuurrrrnnnn OOOOffffffff SSSSoooouuuunnnndddd
  104.            void setMute(Boolean bMuteOn);
  105.  
  106.  
  107. CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  108.            This class displays a movie within a pushable button. When the
  109.           movie is single- or double-clicked, the movie plays (complete with
  110.           an audio track, if available) and any callback associated with the
  111.           button is invoked. This class is most effective with a short movie
  112.           that acts as an animation. A series of VkMovieButton objects could
  113.           be used to act as a multimedia "launchpad", whereby the latency
  114.           period for running an associated application is spent viewing the
  115.           particular movie the user clicked on.
  116.  
  117.           The size of the button is determined by the size of the specified
  118.           movie.  The ideal size of a movie is approximately 64 pixels wide by
  119.           64 pixels high. A movie can be resized or scaled using makemovie(1).
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. VVVVkkkkMMMMoooovvvviiiieeeeBBBBuuuuttttttttoooonnnn((((3333xxxx))))                                            VVVVkkkkMMMMoooovvvviiiieeeeBBBBuuuuttttttttoooonnnn((((3333xxxx))))
  137.  
  138.  
  139.  
  140. FUNCTION DESCRIPTIONS
  141.    VVVVkkkkMMMMoooovvvviiiieeeeBBBBuuuuttttttttoooonnnn(((())))
  142.            VkMovieButton(const char *name, Widget parent,
  143.                       char *movieFileName = NULL, char *label = NULL);
  144.  
  145.  
  146.           Initialize a VkMovieButton. "movieFileName" specifies a valid movie
  147.           file, while label specifies an optional label to be displayed below
  148.           the movie.
  149.  
  150.  
  151.    ~~~~VVVVkkkkMMMMoooovvvviiiieeeeBBBBuuuuttttttttoooonnnn(((())))
  152.            virtual void ~VkMovieButton(void);
  153.  
  154.  
  155.           Free any memory allocated by a VkMovieButton instance.
  156.  
  157.  
  158.    sssseeeettttLLLLaaaabbbbeeeellll
  159.            virtual void setLabel(const char *label);
  160.  
  161.  
  162.           Change the label displayed by the button.
  163.  
  164.  
  165.    sssseeeettttMMMMoooovvvviiiieeeeFFFFiiiilllleeee
  166.            virtual void setMovieFile(const char *movieFile);
  167.  
  168.  
  169.           Change the movie to be played when the button is pushed.
  170.  
  171. IIIINNNNHHHHEEEERRRRIIIITTTTEEEEDDDD MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS
  172.    IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCoooommmmppppoooonnnneeeennnntttt
  173.           installDestroyHandler(), removeDestroyHandler(), widgetDestroyed(),
  174.           setDefaultResources(), getResources(), manage(), unmanage(),
  175.           baseWidget(), okToQuit(), _name, _baseWidget, _w, deleteCallback
  176.  
  177.  
  178.    IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCaaaallllllllbbbbaaaacccckkkkOOOObbbbjjjjeeeecccctttt
  179.           callCallbacks(), addCallback(), removeCallback(),
  180.           removeAllCallbacks()
  181.  
  182.  
  183. CCCCLLLLAAAASSSSSSSSEEEESSSS UUUUSSSSEEEEDDDD BBBBYYYY TTTTHHHHIIIISSSS CCCCLLLLAAAASSSSSSSS
  184.      VkApp
  185.  
  186. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  187.      VkComponent
  188.      makemovie
  189.      /usr/share/src/ViewKit/ComponentDemos/moviebutton
  190.      _V_i_e_w_K_i_t _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e
  191.      _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m, DEC Press, Bob Sheifler and Jim Gettys
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. VVVVkkkkMMMMoooovvvviiiieeeeBBBBuuuuttttttttoooonnnn((((3333xxxx))))                                            VVVVkkkkMMMMoooovvvviiiieeeeBBBBuuuuttttttttoooonnnn((((3333xxxx))))
  203.  
  204.  
  205.  
  206.      _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m _T_o_o_l_k_i_t, DEC Press, Paul Asente and Ralph Swick
  207.      _T_h_e _O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r_s _R_e_f_e_r_e_n_c_e, Prentice Hall, OSF
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.